<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="GaussDB Archive Space Full and Subsequent Backup Failures Due to Long Delay in Manual Archiving (Log Backup) After Enabling the Archiving Function (Applicable to OLTP OPS)">
<meta name="product" content="">
<meta name="DC.Relation" scheme="URI" content="en-us_topic_0000002164657742.html">
<meta name="prodname" content="">
<meta name="version" content="">
<meta name="brand" content="">
<meta name="DC.Publisher" content="20250306">
<meta name="prodname" content="csbs">
<meta name="documenttype" content="usermanual">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="EN-US_TOPIC_0000002200144117">
<meta name="DC.Language" content="en-us">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>GaussDB Archive Space Full and Subsequent Backup Failures Due to Long Delay in Manual Archiving (Log Backup) After Enabling the Archiving Function (Applicable to OLTP OPS)</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="EN-US_TOPIC_0000002200144117"></a><a name="EN-US_TOPIC_0000002200144117"></a>

<h1 class="topictitle1">GaussDB Archive Space Full and Subsequent Backup Failures Due to Long Delay in Manual Archiving (Log Backup) After Enabling the Archiving Function (Applicable to OLTP OPS)</h1>
<div><div class="section"><h4 class="sectiontitle">Symptom</h4><p>If manual archiving (log backup) is not performed for a long time after the archiving function is enabled for GaussDB, subsequent backup will fail.</p>
</div>
<div class="section"><h4 class="sectiontitle">Possible Causes</h4><p>In GaussDB 2.23.01.275 and earlier, if manual archiving (log backup) is not performed for a long time due to GaussDB defects, the log archiving slot will be fully occupied and subsequent log archiving requests will fully occupy the connection pool. As a result, subsequent backup fails.</p>
</div>
<div class="section"><h4 class="sectiontitle">Troubleshooting</h4><ol><li><span>Ensure that the log archive slot is fully occupied.</span><p><ol type="a"><li id="EN-US_TOPIC_0000002200144117__li1106181963816">Log in to an instance node as user <strong id="EN-US_TOPIC_0000002200144117__b979819366818">root</strong>. For a centralized instance, log in to the active DN (usually <strong id="EN-US_TOPIC_0000002200144117__b54969215259">dn_6001</strong>). For a distributed instance, log in to the first CN (usually <strong id="EN-US_TOPIC_0000002200144117__b1815133162514">cn_5001</strong>). Access <strong id="EN-US_TOPIC_0000002200144117__b661765314255">$GAUSSLOG/gs_log/</strong><em id="EN-US_TOPIC_0000002200144117__i2324716173914">Node name</em>.</li><li>Search for <strong>BarrierArchMain will</strong> in the kernel logs generated around the time when the error is reported.</li><li>Check the thread IDs in sequence. If the <strong>length is 599999</strong> field is found in the thread ID attachment, the log archive slot is full. For details, see <a href="#EN-US_TOPIC_0000002200144117__li1181284433510">2</a>. If the <strong>length is 599999</strong> field is not found, contact technical support engineers.</li></ol>
</p></li><li id="EN-US_TOPIC_0000002200144117__li1181284433510"><a name="EN-US_TOPIC_0000002200144117__li1181284433510"></a><a name="li1181284433510"></a><span>Perform a full backup again after restarting the instance.</span></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0000002164657742.html">FAQs</a></div>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">Copyright &copy; Huawei Technologies Co., Ltd.</div></body>
</html>